<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
    <caption>个人信息</caption>
    <tr>
        <td>照片</td>
        <td><img :src="persons.url" alt="" width="150"></td>
    </tr>
    <tr>
        <td>名字</td>
        <td>{{persons.name}}</td>
    </tr>
    <tr>
        <td>年龄</td>
        <td>{{persons.age}}</td>
    </tr>
    <tr>
        <td>好友</td>
        <td>
            <ul>
                <li v-for="name in persons.friends">{{name}}</li>
            </ul>
        </td>
    </tr>

    <tr>
        <td colspan="2" style="text-align: center">
            <input type="button" value="请求数据" @click="f()">
        </td>
    </tr>
</table>
<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>

<script>
    let v=new Vue({
        el:"table",
        data:{
            persons:{
                name:"xxx",
                age:"xxx",
                url:"head.jpg",
                friends:[]
            }
        },
        methods:{
            f(){
                v.persons={
                    name:"顾小桑",age:"21",
                    url:"../gxs02.png",
                    friend:["江芷微","阮玉书"]
                }
            }
        }
    })
</script>
</body>
</html>